FROM frolvlad/alpine-oraclejre8
VOLUME /tmp
ARG JAR_FILE=target/*.jar
ADD ${JAR_FILE} /app/app.jar
WORKDIR /app/
ENV JAVA_OPTS $JAVA_OPTS
ENV APP_OPTS $APP_OPTS
ENTRYPOINT ["sh","-c","java $JAVA_OPTS -Duser.timezone=GMT+08 -Dfile.encoding=UTF-8 -jar app.jar $APP_OPTS"]